
/**   
 * @Title: CarouselController.java 
 * @Package com.neusoft.neumooc.controller.front 
 * @Description: TODO 
 * @author acer   
 * @date 2016年9月16日 下午5:25:32 
*/

package com.neusoft.neumooc.controller.front;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.neusoft.core.common.conf.Params;
import com.neusoft.neumooc.service.front.CarouselService;
import com.neusoft.neumooc.vo.ContentVO;


/** 
 * @ClassName: CarouselController 
 * @Description: TODO 
 * @author acer
 * @date 2016年9月16日
 */
@Controller
@RequestMapping(value = "/carousel")
public class CarouselController {
	@Autowired
	CarouselService  carouseservice;
	

	  @RequestMapping(value = "/getCarousel")
	  @ResponseBody 
	 public Map<String, Object> getCarousel(HttpServletRequest request, HttpServletResponse response)
	 {    
		  
		 List<ContentVO> picList= carouseservice.queryColumsPicList();
	      Map<String, Object> resMap = new HashMap<String, Object>(); 
	     resMap.put(Params.RET_OBJ, picList); 
	     return resMap;
	 }

} 
